# $Id: PKGBUILD 85363 2013-03-01 10:34:01Z andrea $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Peter Kosyh <p.kosyhgmail.com>

pkgname=instead-launcher
pkgver=0.6.1
pkgrel=3
pkgdesc="launcher and games downloader for INSTEAD quest interpreter"
arch=('i686' 'x86_64')
url="http://instead-launcher.googlecode.com/"
license=('GPL')
makedepends=('sed' 'qt4')
source=(http://instead-launcher.googlecode.com/files/instead-launcher_$pkgver.tar.gz)
md5sums=('b2136e535dbb77eacb79e3357dc2a173')

build() {
  cd $srcdir/instead-launcher-$pkgver
  sed -i 's|/usr/local/bin/sdl-instead|/usr/bin/sdl-instead|g' platform.cpp
  qmake PREFIX=/usr
  make
}

package() {
  depends=('qt4' 'instead')
  cd $srcdir/instead-launcher-$pkgver
  make INSTALL_ROOT=$pkgdir install
}
